#ifndef MOVINGISLE_H
#define MOVINGISLE_H

#include <string>
#include "Box2D/Box2D.h"
#include "SFML/Graphics.hpp"
#include <SFML/OpenGL.hpp>
#include "Isle.h"

using namespace std;

class MovingIsle : public Isle
{
public:
	MovingIsle(GameState *gameState, const b2Vec2 &start, const b2Vec2 &end, float size = 8.0f);

	void firstUpdate();

	virtual void update(double dt);

	const b2Vec2& getStart(){ return m_start; } 

	const b2Vec2& getEnd(){ return m_end; } 

	float getVel(){ return m_vel; }

	void setVel(float vel){ m_vel = vel; }

	const b2Vec2& getOriginalPosition(){ return m_originalPos; }

	int getState(){ return m_state; }

	void setState(int state){ m_state = state; }

private:
	b2Vec2 m_start;

	b2Vec2 m_end;

	b2Vec2 m_originalPos;

	int m_state;

	float m_vel;

};

#endif
